        <!-- Morris Charts JavaScript -->
<script src="<?=base_url('public')?>/bower_components/raphael/raphael-min.js"></script>

<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">系统首页</h1>
        </div>
        <!-- /.col-lg-12 --> </div>
    <!-- /.row -->
    <div class="row">
        <div class="col-lg-3 col-md-6">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-xs-3"> <i class="fa fa-users fa-5x"></i>
                        </div>
                        <div class="col-xs-9 text-right">
                            <div class="huge"><?=$z_cust?></div>
                            <div>今日新增客户：<?=$x_cust?></div>
                        </div>
                    </div>
                </div>
                <a href="<?=site_url('customer/index')?>" title="不包括公海客户。包括新增跟其他所有状态。">
                    <div class="panel-footer">
                        <span class="pull-left">客户列表</span>
                        <!-- <span class="pull-right"> <i class="fa fa-arrow-circle-right"></i> -->
                        </span>
                        <div class="clearfix"></div>
                    </div>
                </a>
            </div>
        </div>
        <div class="col-lg-3 col-md-6">
            <div class="panel panel-green">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-xs-3">
                            <i class="fa fa-tasks fa-5x"></i>
                        </div>
                        <div class="col-xs-9 text-right">
                            <div class="huge"><?=$z_common?></div>
                            <div>今日新增公海：<?=$x_common?></div>
                        </div>
                    </div>
                </div>
                <a href="<?=site_url('customer/common')?>" title="公海客户：被销售删除的客户。">
                    <div class="panel-footer">
                        <span class="pull-left">公海客户</span>
                        <span class="pull-right">
                            <i class="fa fa-arrow-circle-right"></i>
                        </span>
                        <div class="clearfix"></div>
                    </div>
                </a>
            </div>
        </div>
        <div class="col-lg-3 col-md-6">
            <div class="panel panel-yellow">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-xs-3">
                            <i class="fa fa-shopping-cart fa-5x"></i>
                        </div>
                        <div class="col-xs-9 text-right">
                            <div class="huge"><?=$kf_cust?></div>
                            <div></div>
                        </div>
                    </div>
                </div>
                <a href="#">
                    <div class="panel-footer">
                        <span class="pull-left">当前未打电话客户</span>
                        <div class="clearfix"></div>
                    </div>
                </a>
            </div>
        </div>
        <div class="col-lg-3 col-md-6">
            <div class="panel panel-red">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-xs-3">
                            <i class="fa fa-support fa-5x"></i>
                        </div>
                        <div class="col-xs-9 text-right">
                            <div class="huge"><?=$yx_cust?></div>
                        </div>
                    </div>
                </div>
                <a href="#">
                    <div class="panel-footer">
                        <span class="pull-left">当前等待上门客户</span>
                        <div class="clearfix"></div>
                    </div>
                </a>
            </div>
        </div>
    </div>

    <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            业务统计
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th>#</th>
                                            <th>员工名称</th>
                                            <th>当前客户</th>
                                            <th>今日新增</th>
                                            <th>未打电话客户</th>
                                            <th>等待上门客户</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php foreach($list as $k => $v):?>
                                        <tr>
                                            <td><?=$k+1?></td>
                                            <td><?=$v['name']?></td>
                                            <td><?=$v['zs']?></td>
                                            <td><?=$v['xz']?></td>
                                            <td><?=$v['wd']?></td>
                                            <td><?=$v['sm']?></td>
                                        </tr>
                                        <?php endforeach;?>
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.table-responsive -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-6 -->
            </div>


</div>
<!-- /#page-wrapper -->